.class Lcom/netease/newsreader/activity/CustomColumn$5;
.super Ljava/lang/Object;
.source "CustomColumn.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/CustomColumn;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/CustomColumn;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/CustomColumn;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/CustomColumn$5;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    .line 482
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6
    .parameter
    .parameter "arg1"
    .parameter "arg2"
    .parameter "arg3"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 489
    .local p1, arg0:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$5;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-le p3, v3, :cond_0

    .line 490
    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$5;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    .line 491
    const-class v4, Lcom/netease/newsreader/activity/ShowColumnInMore;

    .line 490
    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 493
    .local v2, itemintent:Landroid/content/Intent;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 495
    .local v0, b:Landroid/os/Bundle;
    :try_start_0
    const-string v3, "headline"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 497
    const-string v4, "tid"

    .line 498
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$5;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$4(Lcom/netease/newsreader/activity/CustomColumn;)Lcom/netease/newsreader/util/MergeAdapter;

    move-result-object v3

    invoke-virtual {v3, p3}, Lcom/netease/newsreader/util/MergeAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/HashMap;

    const-string v5, "tid"

    invoke-virtual {v3, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    .line 497
    invoke-virtual {v0, v4, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 501
    const-string v4, "tname"

    .line 502
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$5;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v3}, Lcom/netease/newsreader/activity/CustomColumn;->access$4(Lcom/netease/newsreader/activity/CustomColumn;)Lcom/netease/newsreader/util/MergeAdapter;

    move-result-object v3

    invoke-virtual {v3, p3}, Lcom/netease/newsreader/util/MergeAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/HashMap;

    .line 503
    const-string v5, "tname"

    .line 502
    invoke-virtual {v3, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    .line 503
    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    .line 500
    invoke-virtual {v0, v4, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 509
    :goto_0
    invoke-virtual {v2, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 511
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$5;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-virtual {v3, v2}, Lcom/netease/newsreader/activity/CustomColumn;->startActivity(Landroid/content/Intent;)V

    .line 523
    :goto_1
    return-void

    .line 504
    :catch_0
    move-exception v1

    .line 506
    .local v1, e:Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    .line 513
    .end local v0           #b:Landroid/os/Bundle;
    .end local v1           #e:Ljava/lang/Exception;
    .end local v2           #itemintent:Landroid/content/Intent;
    :cond_0
    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$5;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    .line 514
    const-class v4, Lcom/netease/newsreader/activity/NewsReader;

    .line 513
    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 516
    .restart local v2       #itemintent:Landroid/content/Intent;
    const/high16 v3, 0x400

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 517
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 518
    .restart local v0       #b:Landroid/os/Bundle;
    const-string v3, "column_id"

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v0, v3, v4}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 519
    invoke-virtual {v2, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 521
    iget-object v3, p0, Lcom/netease/newsreader/activity/CustomColumn$5;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-virtual {v3, v2}, Lcom/netease/newsreader/activity/CustomColumn;->startActivity(Landroid/content/Intent;)V

    goto :goto_1
.end method
